Skip to content

test(evidence): deflake prose/visual asserts against committed registry - #192

Merged
Coding-Dev-Tools merged 1 commit into
mainfrom
test/evidence-deflake
Sep 3, 2026
Merged

test(evidence): deflake prose/visual asserts against committed registry#192
Coding-Dev-Tools merged 1 commit into
mainfrom
test/evidence-deflake

Conversation

@Coding-Dev-Tools

Copy link
Copy Markdown
Owner

test(evidence): deflake prose/visual asserts against committed registry

Follow-up to the flaky test_benchmark_evidence failures observed on main after #190: the registry-vs-live comparison and the prose/visual assertions interpolated values from a LIVE evaluator run whose timing-derived aggregates wobble run-to-run (observed 23,808 vs 23,810 payload tokens; 85.35 vs 85.38 mean context).

Changes (1 commit on top of #191-merged main)

  1. Prose/visual tests now interpolate from the COMMITTED registry artifact (docs/benchmark-evidence/offline-fixtures-v1.json) via a _committed_evidence() helper — README, BENCHMARKS and both SVGs were written from that artifact, so assertions can't drift from the evidence they cite:
    • test_readme_distinguishes_every_registered_token_context_measurement
    • test_context_savings_visual_uses_only_registered_measurements
    • test_benchmark_guide_tracks_the_live_offline_evaluators
  2. Live-vs-registry bridge (test_public_numeric_evidence_registry_is_complete_and_live) keeps exact equality for integer/categorical fields and applies a 0.5% relative tolerance only to timing-derived aggregates (mean/max tokens, payload totals, ratio) — real drift still fails, scheduler jitter does not.

Verification

  • test_benchmark_evidence: 36 passed, repeatedly (previously flaked 4/36)
  • ruff clean
  • No published numbers changed; registry untouched (sha 8a74e9f4… still correct)

test_readme_distinguishes_every_registered_token_context_measurement,
test_context_savings_visual_uses_only_registered_measurements and
test_benchmark_guide_tracks_the_live_offline_evaluators interpolated
values from a LIVE evaluator run and compared them to prose written from
the committed registry — a race between wall-clock sampling variance
(observed 23,808 vs 23,810 payload tokens; 85.35 vs 85.38 mean) and the
published decimals.

Prose/visual assertions now interpolate from the COMMITTED registry
artifact via _committed_evidence(), making them deterministic. The
live-vs-registry bridge (test_public_numeric_evidence_registry...) keeps
exact equality for integers/categorical fields and applies a 0.5%
relative tolerance only to timing-derived aggregates (mean/max tokens,
payload totals, ratio), so real drift still fails while scheduler jitter
does not.
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@Coding-Dev-Tools
Coding-Dev-Tools merged commit da70385 into main Sep 3, 2026
23 checks passed
@Coding-Dev-Tools
Coding-Dev-Tools deleted the test/evidence-deflake branch September 3, 2026 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant